<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('实体卡卡号')}:</label>
		<div class="col-xs-12 col-sm-8" style="line-height:37px;">
			{$row.card_no}
		</div>
	</div>

	{if condition='$row.user && $row.is_bind && $row.activetime'}
	{else/}
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('实体卡密码')}:</label>
		<div class="col-xs-12 col-sm-8" style="line-height:37px;">
			<input id="c-cardpass" data-rule="required" class="form-control" name="row[cardpass]" type="text" value="{$row.cardpass}"/>
		</div>
	</div>
	{/if}

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('绑定用户ID')}:</label>
		<div class="col-xs-12 col-sm-8" style="line-height:37px;">
			{$row.user_id}
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('绑定用户昵称')}:</label>
		<div class="col-xs-12 col-sm-8" style="line-height:37px;">
			{$row.nickname}
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('余额')}:</label>
		<div class="col-xs-12 col-sm-8" {if condition='$row.user && $row.is_bind && $row.activetime'}style="line-height:37px;"{/if}>
			{if condition='$row.user && $row.is_bind && $row.activetime'}
			<span>{$row.balance_money}</span>
			{else/}
			<input id="c-balance_money" data-rule="required" class="form-control" name="row[balance_money]" type="number" value="{$row.balance_money}" onchange="if(parseFloat(this.value)<0 || this.value==='')this.value=0;" onpaste="return false;"/>
			{/if}
		</div>
	</div>


	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
		<div class="col-xs-12 col-sm-8">
			{volist name='typeList' id='item'}
			<label class="radio-inline">
				<input type="radio" name="row[status]" value="{$key}" {eq name="row.status" value="$key"}checked{/eq}/> {$item}
			</label>
			{/volist}
		</div>
	</div>

		<div class="form-group layer-footer">
			<label class="control-label col-xs-12 col-sm-2"></label>
			<div class="col-xs-12 col-sm-8">
				<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
				<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
			</div>
		</div>
	</div>
</form>
